<template>
  <div style="margin: 10px; padding: 10px; border: 1px solid rgba(255, 196, 0, 0.849);" >
    <div v-for="(item, key, index) in obj" :key="index">
      <div v-if="(typeof item === 'object')" >
        <el-row :gutter="20">
          <el-col :span="5">
            {{ key }}：
          </el-col>
          <el-col :span="19">
            <show-object :obj="item"></show-object>
          </el-col>
        </el-row>
      </div>
      <div  v-else>
        <el-row :gutter="20">
          <el-col :span="5">
            {{ key }}：
          </el-col>
          <el-col :span="19">
            {{ item }} 
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" generic="T">
  // import { defineComponent } from 'vue'

  defineProps<{
    obj: T
  }>()


</script>